package concursos.metadados;

import java.io.Serializable;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(schema="th28841_testes")
public class Tabela implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
    private long id;
    private float peso;
    private String equacao;
    private String preCondicao;

    @OneToMany(mappedBy="tabela")
    private Set<Item> itens;

    public String getEquacao() {
        return equacao;
    }

    public void setEquacao(String equacao) {
        this.equacao = equacao;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Set<Item> getItens() {
        return itens;
    }

    public void setItens(Set<Item> itens) {
        this.itens = itens;
    }

    public float getPeso() {
        return peso;
    }

    public void setPeso(float peso) {
        this.peso = peso;
    }

    public String getPreCondicao() {
        return preCondicao;
    }

    public void setPreCondicao(String preCondicao) {
        this.preCondicao = preCondicao;
    }
}
 
